import { useSelector } from 'react-redux'

const View = () => {
    // 获取仓库数据
    const { num } = useSelector((state) => ({
        num:state.num
    }))

    return (
        <div className="home">
            <p>test1组件</p>
            <p>{ num }</p>
        </div>
    )
}

export default View